package com.gec.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/access")
public class MyController {

    @GetMapping("/user")
    public String user() {
        return "zs 是 user";
    }

    @GetMapping("/read")
    public String read() {
        return "lisi 是 read";
    }

    @GetMapping("/admin")
    public String admin() {
        return "admin 是 admin 和 user";
    }
}
